package cn.com.agree.contractcenter.interfaces.web.api;

import cn.com.agree.contractcenter.application.contracttemplate.dto.ContractTemplateRequestDTO;
import cn.com.agree.contractcenter.application.contracttemplate.dto.ContractTemplateResponseDTO;
import cn.com.agree.contractcenter.application.contracttemplate.service.ContractTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenrui
 * @description
 * @date 2022/10/12
 */
@RestController("/contractTemplate")
public class ContractTemplateController {
    @Autowired
    private ContractTemplateService contractTemplateService;

    @PostMapping("/create")
    public ContractTemplateResponseDTO createContractTemplate(ContractTemplateRequestDTO contractTemplateRequestDTO){
        return contractTemplateService.createContractTemplate(contractTemplateRequestDTO);
    }
}
